#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
int main()
{
	char *dir="/home/abby/bin/directory";
	if(mkdir(dir,0700)==-1)
	{
		printf("creat failed\n");
		return 1;
	}
	else
	{
		printf("creat directory sucessful \n");
	}
	sleep(10);
	if(rmdir(dir)==-1)
	{
		printf("remove failed \n");
		return 1;
	}
	else
	{
		printf("remove directory sucessful\n");
	}
	return 0;
}

